function myrefresh(){
   window.location.reload();
}
/*jQuery获取select选中的option */
/*
    1.本校学生
        (1)姓名
        (2)学号
        (3)学院
        (4)类别
        (5)场次
    2.外校学生
        (1)学校名字
        (2)场次
    3.本校老师
        (1)姓名
        (2)学院
        (3)类别
        (4)场次
    4.辅导员
        (1)姓名
        (2)学院
        (3)类别
        (4)场次
*/
$('#class-name').change(
    function(){
        var Name_box = document.getElementById("name-box"); //姓名
        var School_box = document.getElementById("school-box");//学校
        var Number_Box = document.getElementById("number-box");//学号
        var Work_Class = document.getElementById("work-class");//学院
        var College_box = document.getElementById("college-box");//类别
        var Session_box = document.getElementById("session-box");//场次
        // var Button_box = document.getElementById("button-box");//提交按钮
        // alert($("#class-name").find("option:selected").text());
        if($('#class-name').val() == "请点击选择"){
            Name_box.style.display = "none";
            School_box.style.display = "none";
            Number_Box.style.display = "none";
            Work_Class.style.display = "none";
            College_box.style.display = "none";
            Session_box.style.display = "none";
            // Button_box.style.display = "none";
        }
        else if($('#class-name').val() == "外校学生"){
            Name_box.style.display = "none";
            School_box.style.display = "block";
            Number_Box.style.display = "none";
            Work_Class.style.display = "none";
            College_box.style.display = "none";
            Session_box.style.display = "block";
            // Button_box.style.display = "block";
        }
        else if($('#class-name').val() == "本校学生"){
            Name_box.style.display = "block";
            School_box.style.display = "none";
            Number_Box.style.display = "block";
            Work_Class.style.display = "block";
            College_box.style.display = "block";
            Session_box.style.display = "block";
            // Button_box.style.display = "block";
        }
        else if($('#class-name').val() == "本校老师"){
            Name_box.style.display = "block";
            School_box.style.display = "none";
            Number_Box.style.display = "none";
            Work_Class.style.display = "block";
            College_box.style.display = "none";
            Session_box.style.display = "block";
            // Button_box.style.display = "block";
        }
        else if($('#class-name').val() == "辅导员"){
            Name_box.style.display = "block";
            School_box.style.display = "none";
            Number_Box.style.display = "none";
            Work_Class.style.display = "block";
            College_box.style.display = "none";
            Session_box.style.display = "block";
            // Button_box.style.display = "block";
        }
    }
)  